package com.yida.wy.vote.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author lqq
 * @date 2023-03-10
 */
@ApiModel("投票项目统计基础数据输出")
public class WyVoteProjectStatisticsBaseDataDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("地区ID")
    private Long areaId;

    @ApiModelProperty("街道ID")
    private Long streetId;

    @ApiModelProperty("地区名称")
    private String areaName;

    @ApiModelProperty("街道名称")
    private String streetName;

    @ApiModelProperty("小区ID")
    private Long communityId;

    @ApiModelProperty("小区名称")
    private String communityName;
    @ApiModelProperty("建筑总面积")
    private BigDecimal totalSize;

    @ApiModelProperty("业主总人数、总表决票")
    private Integer totalOwner;

    @ApiModelProperty("有效票、收回表决票、有效业主人数")
    private Integer totalValidOwner;

    @ApiModelProperty("弃权票")
    private Integer totalAbstentionCount;

    @ApiModelProperty("有效建筑总面积")
    private BigDecimal totalValidSize;

    @ApiModelProperty("面积占比")
    private BigDecimal sizePercent;

    @ApiModelProperty("业主占比")
    private BigDecimal ownerPercent;

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getStreetName() {
        return streetName;
    }

    public void setStreetName(String streetName) {
        this.streetName = streetName;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public Long getStreetId() {
        return streetId;
    }

    public void setStreetId(Long streetId) {
        this.streetId = streetId;
    }

    public Long getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }

    public BigDecimal getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(BigDecimal totalSize) {
        this.totalSize = totalSize;
    }

    public Integer getTotalOwner() {
        return totalOwner;
    }

    public void setTotalOwner(Integer totalOwner) {
        this.totalOwner = totalOwner;
    }

    public Integer getTotalValidOwner() {
        return totalValidOwner;
    }

    public void setTotalValidOwner(Integer totalValidOwner) {
        this.totalValidOwner = totalValidOwner;
    }

    public Integer getTotalAbstentionCount() {
        return totalAbstentionCount;
    }

    public void setTotalAbstentionCount(Integer totalAbstentionCount) {
        this.totalAbstentionCount = totalAbstentionCount;
    }

    public BigDecimal getTotalValidSize() {
        return totalValidSize;
    }

    public void setTotalValidSize(BigDecimal totalValidSize) {
        this.totalValidSize = totalValidSize;
    }

    public BigDecimal getSizePercent() {
        return sizePercent;
    }

    public void setSizePercent(BigDecimal sizePercent) {
        this.sizePercent = sizePercent;
    }

    public BigDecimal getOwnerPercent() {
        return ownerPercent;
    }

    public void setOwnerPercent(BigDecimal ownerPercent) {
        this.ownerPercent = ownerPercent;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("GwjVoteProjectStatisticsBaseDataDTO{");
        sb.append("areaId=").append(areaId);
        sb.append(", streetId=").append(streetId);
        sb.append(", communityId=").append(communityId);
        sb.append(", totalSize=").append(totalSize);
        sb.append(", totalOwner=").append(totalOwner);
        sb.append(", totalValidOwner=").append(totalValidOwner);
        sb.append(", totalAbstentionCount=").append(totalAbstentionCount);
        sb.append(", totalValidSize=").append(totalValidSize);
        sb.append(", sizePercent=").append(sizePercent);
        sb.append(", ownerPercent=").append(ownerPercent);
        sb.append('}');
        return sb.toString();
    }
}
